package com.credithc.customers.base.ro;

import com.credithc.customers.base.utils.CustomerUtils;
import lombok.Data;

import java.io.Serializable;

/**
 * @Title:
 * @Author: Denghx
 * @Date: 2018/12/3 11:24
 * @Description: com.credithc.customers.api.ro
 * @Version: V1.0.0
 */
@Data
public class ThreeElementsRo implements Serializable {

    private String idCardType;

    private String idCardNo;

    private String customerName;

    private String preCustomerNo;

    private String remark;

    public static void checkBaseParam(ThreeElementsRo ro) {
        CustomerUtils.checkIdCardType(ro.getIdCardType());
        CustomerUtils.checkIdCardNo(ro.getIdCardNo());
        CustomerUtils.checkCustomerName(ro.getCustomerName());
    }
}
